<% provide(:title, 'Add Comment') %>
<h1>Add Comment</h1>
<div class="row">
<div class="col-md-6 col-md-offset-3">

<%= form_for(@comment) do |f| %>
<%= render 'shared/error_messages', object: f.object %>
<%= f.label :content %>
<%= f.text_field :content %>
<%= f.hidden_field :micropost_id %>
<%= f.hidden_field :user_id ,:value =>current_user.id %>
<%= f.submit "Create Comment", class: "btn btn-primary" %>
<% end %>
</div>
</div>